var express = require("express");
var router = express.Router();
var { userModel } = require("../model/model");

router.get("/list", async (req, res) => {
  let data = await userModel.find();
  res.send({
    data,
  });
});


module.exports = router;
